package com.hz.foodstalls.shiro.freemarker;

import freemarker.template.SimpleHash;

/**
 * Created by foodstalls on 2016/2/18.
 */
public class ShiroTags extends SimpleHash {
    public ShiroTags() {
        put("authenticated", new AuthenticatedTag());
        put("guest", new GuestTag());
        put("hasAnyRoles", new HasAnyRolesTag());
        put("hasPermission", new HasPermissionTag());
        put("hasRole", new HasRoleTag());
        put("lacksPermission", new LacksPermissionTag());
        put("lacksRole", new LacksRoleTag());
        put("notAuthenticated", new NotAuthenticatedTag());
        put("principal", new PrincipalTag());
        put("user", new UserTag());
        put("isLoginFailure", new IsLoginFailureTag());
        put("loginException", new LoginExceptionTag());
        put("loginUsername", new LoginUsernameTag());
    }
}
